﻿using UnityEngine;

namespace Pvp
{
    [RequireComponent(typeof(FightUnitEntity))]
    public class RoleView : MonoBehaviour
    {
        private FightUnitEntity m_Rolexxx;
        [Range(0, 0.95f)]
        public float positionSmooth = 0.6f;

        private static Vector3 mirroredScale = new Vector3(-1, 1, 1);
        private static Vector3 normalScale = Vector3.one;
        private static Quaternion mirroredRotation = Quaternion.Euler(0, -90, 0);
        private static Quaternion normalRotation = Quaternion.Euler(0, 90, 0);

        private void Start()
        {
            m_Rolexxx = GetComponent<FightUnitEntity>();
        }

        private void Update()
        {
            // m_Rolexxx.transform.localScale = m_Rolexxx.mirrored ? mirroredScale : normalScale;
            // m_Rolexxx.transform.rotation = m_Rolexxx.mirrored ? mirroredRotation : normalRotation;
            // transform.position = Vector3.Lerp(transform.position, m_Rolexxx.Trans.position.ToVector(), positionSmooth);
        }
    }
}

